#pragma once
#include "D3DDevice.h"

class CApplication
{
public:
	void MainLoop( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow );
	void Render();
	HRESULT InitApp( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow );
	HRESULT InitWindow( HINSTANCE hInstance, int nCmdShow );
	HRESULT InitDevices();
	void CleanupDevice();

private:
	HINSTANCE m_hInst;
	HWND m_hWnd;
	CD3DDevice m_MainDevice;
	CD3DDevice m_SecondaryDevice;
	ID3D11RenderTargetView* m_pRenderTargetView;
};